/* ===================================================
   ZINGMART – ULTIMATE PRO UI (ALL-IN-ONE)
=================================================== */

:root {
  --primary: #E30613;
  --primary-dark: #C20510;

  --bg-main: #FFFFFF;
  --bg-card: #EDEDED;
  --bg-soft: #FFF1F1;

  --text-dark: #1E1E1E;
  --text-light: #6F6F6F;

  --border: #E5E7EB;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ================= GLOBAL ================= */
body {
  margin: 0;
  background: var(--bg-main);
  font-family: Roboto, Arial, sans-serif;
  color: var(--text-dark);
}

img { width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ================= HEADER ================= */
.app-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ================= SECTIONS ================= */
.section, .main-banner, .deal-section {
  margin: 16px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  padding: 14px;
}

/* ================= CATEGORY ================= */
.category-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px;
}

.category-item {
  min-width: 92px;
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 10px;
  text-align: center;
  transition: transform .2s;
}

.category-item:active {
  transform: scale(0.95);
}

.category-item span {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  padding: 14px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
  background: var(--bg-card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.product-card:active {
  transform: scale(0.97);
}

.product-image {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Discount */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Wishlist */
.wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* ================= RESPONSIVE ================= */
@media (min-width:768px){
  .product-grid { grid-template-columns: repeat(4,1fr); }
}
.browse-categories,
.category-section {
  background: var(--section-light-bg);
  border-radius: 20px;
  margin: 14px 12px;
  padding: 14px 0;
}
.new-year-sale,
.offer-banner-section {
  background: var(--section-light-bg);
  border-radius: 20px;
  margin: 14px 12px;
  padding: 14px;
}
.top-selling,
.top-selling-section {
  background: var(--section-light-bg);
  border-radius: 20px;
  margin: 14px 12px;
  padding-bottom: 10px;
}
.top-selling .product-card,
.new-year-sale .banner-card,
.browse-categories .category-item {
  background: #FFFFFF; /* cards white hi rahenge */
}
/* PRODUCT NAME BOLD – DISCOUNT COMPLETELY EXCLUDED */
[class*="product"]:not([class*="discount"]):not([class*="off"]) 
p:not([class*="discount"]):not([class*="off"]),
[class*="product"]:not([class*="discount"]):not([class*="off"]) 
h3,
[class*="product"]:not([class*="discount"]):not([class*="off"]) 
h4 {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #111 !important;
}
/* =====================================
   HOME SCREEN FULL BACKGROUND (EXACT)
   ===================================== */

/* Sirf HOME page detect */
main:has(.hero-banner-root) {
  background-color: #87CEEB !important;
  padding-bottom: 30px;
}

/* Home ke andar jo actual white blocks hain */
main:has(.hero-banner-root) section,
main:has(.hero-banner-root) .section,
main:has(.hero-banner-root) .container {
  background-color: #f2f2f2;
  border-radius: 22px;
}

/* Category & product cards white rahe */
main:has(.hero-banner-root) .card {
  background: #ffffff;
  border-radius: 16px;
}
/* ===== DESKTOP HEADER FORCE COLOR FIX ===== */
@media (min-width: 992px) {

  /* Header background */
  header,
  .sh-header-main {
    background-color: #ffffff !important;
  }

  /* ALL TEXT INSIDE HEADER */
  header *,
  .sh-header-main * {
    color: #111111 !important;
  }

  /* FORCE ICON COLOR */
  header svg,
  .sh-header-main svg {
    fill: #E30613 !important;
    stroke: #E30613 !important;
    color: #E30613 !important;
  }

  /* Menu hover */
  header a:hover {
    color: #E30613 !important;
  }

  /* Cart badge */
  .sh-header-cart-badge,
  .cart-count {
    background: #E30613 !important;
    color: #ffffff !important;
  }
}
